package city.spring.modules.material.service;

import city.spring.modules.material.entity.MaterialBreakageDeliveryMaterialEntity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * Service：报损出库关联物资表
 *
 * @author 谢金婷
 * @date 2021-01-20 10:53:12
 */
public interface MaterialBreakageDeliveryMaterialService extends IService<MaterialBreakageDeliveryMaterialEntity> {
    String CACHE_NAME = "material_breakage_delivery_material";

    /**
     * 业务处理：保存一个 <strong>报损出库关联物资表</strong>
     *
     * @param entity 报损出库关联物资表
     */
    void saveMaterialBreakageDeliveryMaterial(MaterialBreakageDeliveryMaterialEntity entity);

    /**
     * 业务处理：修改一个 <strong>报损出库关联物资表</strong>
     *
     * @param entity 报损出库关联物资表
     */
    void updateMaterialBreakageDeliveryMaterial(MaterialBreakageDeliveryMaterialEntity entity);

    /**
     * 业务处理：删除一个 <strong>报损出库关联物资表</strong>
     *
     * @param primaryKey 主键ID
     */
    void deleteMaterialBreakageDeliveryMaterial(String primaryKey);

    /**
     * 业务处理：删除多个 <strong>报损出库关联物资表</strong>
     *
     * @param primaryKeys 主键ID列表
     */
    void deleteMaterialBreakageDeliveryMaterial(List<String> primaryKeys);
}